﻿@model ECatalog.Models.Organizations.OrganizationViewModel
<div class="container">
    <div class="row col-lg-3">
 @using (Html.BeginForm("Create", "Organization", null, FormMethod.Post, new { enctype = "multipart/form-data" }))
        {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary(true)

            <fieldset>
                <legend>Добавление организации</legend>
                <div class="editor-label">
                   Название
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.Organization.Name, new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.Organization.Name)
                </div>

                <div class="editor-label">
                   Описание
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.Organization.Description, new { @class = "form-control" })
                    @Html.ValidationMessageFor(model => model.Organization.Description)
                </div>
                <div class="editor-field">
                    Логотип
                </div>
                <div class="editor-field">
                    <input type="file" name="UploadedFile" id="UploadedFile" class="form-control" />
                </div>
                <br/>
                <p>
                    <input type="submit" value="Создать" class="btn btn-primary" />
                </p>
            </fieldset>
        }
        <div>
            @Html.ActionLink("Назад", "Index")
        </div>
    </div>
</div>
